package com.platform.wechat.mapper;

import com.platform.wechat.entity.Notice;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface NoticeMapper {

    /**
     * 根据公告类型查询公告
     * @param noticeType
     * @return
     */
    List<Notice> selectByNoticeType(Integer noticeType);

    int deleteByPrimaryKey(Integer id);

    int insert(Notice record);

    int insertSelective(Notice record);

    Notice selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Notice record);

    int updateByPrimaryKey(Notice record);
}